package cn.wolfcode.shop.cloud.util;

import cn.wolfcode.shop.cloud.key.KeyPrefix;

public class MemberKeyPrefix implements KeyPrefix {
    private int expireTime;
    private String keyPrefix;

    public MemberKeyPrefix(int expireTime, String keyPrefix) {
        this.expireTime = expireTime;
        this.keyPrefix = keyPrefix;
    }

    public MemberKeyPrefix() {

    }

    @Override
    public String getPreix() {
        return this.keyPrefix;
    }

    @Override
    public int getExpireTime() {
        return this.expireTime;
    }

    public static final MemberKeyPrefix USER_TOKEN = new MemberKeyPrefix(1800,"usertoken");
}
